home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 2
/
CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso
/
magazine
/
amiga_e
/
epp
/
docs
/
pmodules
/
cskipwhite.doc
< prev
next >
Wrap
Text File
|
1980-01-05
|
1KB
|
19 lines
MODULE cSkipWhite.e
/*----------------------------------------------------------------------*/
/* pos must point into a null-terminated string! */
/* pos must be passed by value! */
/* pos must not point beyond the end of the string when it's passed in! */
/* */
/* Skips SPACE, TAB, LF, CR. Returns end pos so that the following */
/* statement sequence can be used in the calling program: */
/* length := (cSkipWhite (startPos) - startPos) */
/* MidStr (someString, startPos, 0, length) */
/* */
/* If you use the string with index method in your main program, you */
/* can get the PTR TO CHAR pos by using: */
/* length := (cSkipWhite (string + index) - (string + index)) */
/* MidStr (someString, string, index, length) */
/*----------------------------------------------------------------------*/